package cn.tedu.csms.storage.service.impl;



import cn.tedu.csms.product.pojo.dto.DeleteParam;

import cn.tedu.csms.storage.mapper.StorageMapper;
import cn.tedu.csms.storage.pojo.dto.StorageParam;
import cn.tedu.csms.storage.service.StorageService;
import lombok.extern.slf4j.Slf4j;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Transactional
@Slf4j
@Service
public class StorageServiceImpl implements StorageService {

    @Autowired
    StorageMapper storageMapper;


    @Override
    public void deleteStorage(DeleteParam deleteParam) {
        log.debug("删除库存业务，参数{}", deleteParam);
        storageMapper.deleteStorage(deleteParam);

    }

    @Override
    public void saveStorage(StorageParam storageParam) {
        log.debug("保存库存业务，参数{}", storageParam);
        storageMapper.saveStorage(storageParam);

    }
}
